import {Component} from 'react'
import Button from '../Button'
class  Paging extends Component {
    render() {
        console.log('Paging====',this)
        console.log(this.props)
        const {page} = this.props
        const {onlastPage,onNextpage} = this.props.clicks
        return (
            <div className='page'>
                <Button onClick={() => onlastPage()}>上一页</Button>
                <span>{page + 1}</span>
                <Button onClick={() => onNextpage()}>下一页</Button>
            </div>
        )
    }
}
export default Paging